package ooday05;
/**
 * 标准JavaBean的规则
 * 1.成员变量私有化,同时提供对应的的公开的getter/setter
 * 2.包含公开的无参构造方法
 */
public class Point {
    private int x;
    private int y;

    public int getx(){return x;};
    public void setx(int x){this.x=x;}

    public int gety(){return y;}
    public void sety(int y){this.y=y;}
}
